package br.com.lh.urabuilder.domain.session
{
	/**
	 * This class holds information about a user session, 
	 * storing the httpSessionId and the uraId, this data is useful for saving the ura.
	 * 
	 * The httpsessionId is a uniqueId that is used on the server 
	 * side to fetch information from the current httpSession, 
	 * as this project is intended to be integrated inside another project.
	 * 
	 * The uraId is used for informing the server side whether this is a 
	 * first-time save or an update; due to java-flex type conversion nature, a -1 
	 * will be used for indicating that this is a first-time saving operation. 
	 * 
	 * This data will be populated as soon as the MainApp gets loaded, wheter in a newURA 
	 * or loadURA operation. If the ura gets saved on the database, the uraId should be updated with its id 
	 * value.   
	 * 
	 * @author Luiz Henrique
	 * 
	 */
	public class SessionHolder
	{
		public var uraId:String;
		private var _sessionId:String = null;

		public function get sessionId():String{
			return _sessionId;
		}
				
		public function SessionHolder(sessionId:String,uraId:String = "-1"){
			this.uraId = uraId;
			this._sessionId = sessionId;
		}

	}
}